<include file="Public/left" />

<form class="table-form" name="form1" method="post" action="<{:U('addok')}>">

<div class="nav-table">
<span class="on" href="table-one">添加文章</span>
<span href="table-two">扩展信息</span>
</div>
<div class="nav-bottom"></div>


<div class="input-box">
<ul id="table-one">
  <li>
   <label for="title">文章标题</label>
   <input type="text" name="title" id="title" />
  </li>
  <li>
   <label for="catid">文章分类</label>
   <select name="catid" id="catid">
   <option value="">请选择分类</option>
   <volist name="cat" id="list">
   <option value="<{$list['id']}>"><{$list['name']}></option>
   </volist>
   </select>
  </li>
  <li>
  <label for="content">文章内容</label>
   <textarea name="content" id="content" style="width:800px;height:260px;"></textarea>
   <script language="javascript" type="text/javascript" src="__PLUGIN__/kindeditor/kindeditor.js"></script>
   <script language="javascript" type="text/javascript">
		var editor;
		KindEditor.ready(function(K) {
			editor = K.create('textarea[name="content"]', {
				allowFileManager : true
			});
			
		});
  </script>
  </li> 
</ul>

<ul id="table-two">
  <li>
   <label for="keyword">关键词</label>
   <input type="text" name="keyword" id="keyword" />
  </li>
  <li>
   <label for="url">别名</label>
   <input type="text" name="url" id="url" />
  </li>
  <li>
   <label for="ord">展示序号</label>
   <input type="text" name="ord" id="ord" value="0" />
  </li>
  <li>
   <label for="hit">阅读次数</label>
   <input type="text" name="hit" id="hit" value="0" />
  </li>
  <li>
   <label for="time">发布时间</label>
   <input type="text" name="time" id="time" value="<{:date("Y-m-d H:i:s")}>" />
  </li>
  <link href="__PLUGIN__/date/date.css" rel="stylesheet" type="text/css" />
  <script src="__PLUGIN__/date/date.js"></script>
  <script>
  $('#time').datetimepicker({
	lang:'ch',
	format:'Y-m-d H:i:s',
  });
  </script>
  <li>
   <label for="description">内容摘要</label>
   <textarea name="description" id="description" cols="70" rows="5"></textarea>
  </li>
</ul>
 
<div class="table-but"><input type="submit" name="button" id="button" value="确 认 添 加"></div>
</div>
</form>
<include file="Public/foot" />